package cn.stylefeng.guns.modular.wordstudy.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 单词信息
 * </p>
 *
 * @author
 * @since 2020-04-28
 */
@TableName("thesis_rmb_word")
@Data
public class Word implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单词
     */
    @TableField("name")
    private String name;
    @TableField("tip")
    private String tip;
    @TableField("detail")
    private String detail;

    /**
     * 音标
     */
    @TableField("symbol")
    private String symbol;
    @TableField("symbol_en")
    private String symbolEn;

    /**
     * 中文
     */
    @TableField("name_cn")
    private String nameCn;

    /**
     * 单词所属词库
     */
    @TableField("type")
    private String type;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getNameCn() {
        return nameCn;
    }

    public void setNameCn(String nameCn) {
        this.nameCn = nameCn;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Word{" +
                "id=" + id +
                ", name=" + name +
                ", symbol=" + symbol +
                ", nameCn=" + nameCn +
                ", type=" + type +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
